using Microsoft.AspNetCore.Mvc;
using SimpleApp.Models;

namespace SimpleApp.Controllers
{
    public class HomeController : Controller
    {
        public IDataSource dataSource = new ProductDataSource();
        // GET: HomeController
        public ActionResult Index()
        {
            return View(dataSource.Products);
        }

    }
}
